wayland: Allow grabless xdg_popups
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 18 Oct 2016 17:18:14 +0000 (19:18 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 20 Oct 2016 09:41:59 +0000 (11:41 +0200)
commit31db11dd5bedfc35b3b714ddbf5569513d97f7e6
tree97afdca88aef8f93c75a5496472a75f9c6f9eb48
parent59af3a0c15c44b97920fec7afbf289ceddd4ba69
wayland: Allow grabless xdg_popups

xdg_shell v6 allows grabless popups, whose behavior is not that
different from override redirect windows with no grab to take
keyboard input (and pointer events outside).

This means we can relax the requirement to have a grab before
creating an xdg_popup. The warning is still useful to have so
people stop relying on gdk_window_show();gdk_device_grab() being
an ok pattern to popup a window, it's been moved to wayland
implementation of gdk_device_grab() instead, so we warn if trying
to grab a GDK_WINDOW_TEMP window that's already visible.

https://bugzilla.gnome.org/show_bug.cgi?id=771694
gdk/wayland/gdkdevice-wayland.c
gdk/wayland/gdkwindow-wayland.c